<?php
    class ExaminfoViewModel extends ViewModel {
       public $viewFields = array(
         'Examinfo'=>array('id','exName','exCount','createtime'),
         'Subject'=>array('display'=>'subjectName', '_on'=>'Examinfo.subjectid=Subject.id'),
       );
    }
?>